# author Basui
# 2022/6/6 16:10
class Father:
    last_name = "李华"

    def property(self):
        print("Father的花呗被继承了")


def __property1():
    print("Father1的白条被继承了")


class Father1:
    __last_name1 = "李"


def property2():
    print("父类的私有属性和方法不能被继承，但子类可以重写父类的方法，优先调用自己的方法")


class Person(Father, Father1):
    def property(self):
        print("我自己有花呗")

    def __init__(self):
        print("创建对象的时候我被调用了")


f = Person()
f.property()
f.last_name
property2()
